package edu.shiep.sunyu.model;

import com.mongodb.BasicDBObject;

public class BusSchedule implements BaseDBObj {

	public static final String Field_Id = "id";
	public static final String Field_Time = "time";
	
	public BusSchedule() {
		
	}
	
	public void deserialize(BasicDBObject obj) {
		_id = obj.getString(Field_Id);
		_time = obj.getString(Field_Time);
	}
	
	public BasicDBObject serialize() {
		return new BasicDBObject(Field_Id, this._id).
				append(Field_Time, this._time);
	}
	
	public void setId(String _id) {
		this._id = _id;
	}
	
	public String getId() {
		return this._id;
	}
	
	public void setTime(String _time) {
		this._time = _time;
	}
	
	public String getTime() {
		return this._time;
	}
	
	private String _id = "";
	private String _time = "";
	
}
